


let a = ''
let b = ''
let c = ''
let d = ''
let srv = ''
let ws = ''
let busi = ''
let eshop = ''
let edu = ''


let host = location.host
if (host == 'busi.xueerqin.net') {
    a = 'https://api.xueerqin.net' // 正式
    b = 'https://app.xueerqin.net' // 正式 
    c = 'https://oauth.fjfuyu.net' // 正式 
    srv = 'https://srv.xueerqin.net'       
    ws = 'wss://websocket.xueerqin.net'  
    busi = 'https://busi.xueerqin.net' 
    eshop = 'https://eshop.fjfuyu.net'
    edu = 'https://edu.fjfuyu.net'
 
} else if (host == 's-busi.xueerqin.net') {
    a = 'https://s-api.xueerqin.net' 
    b = 'https://sapp.xueerqin.net'  
    c = 'https://stag.oauth.fjfuyu.net'
    srv = 'https://ssrv.xueerqin.net'       
    ws = 'wss://s-websocket.xueerqin.net'  
    busi = 'https://s-busi.xueerqin.net' 
    eshop = 'https://stag.eshop.fjfuyu.net'
    edu = 'https://stag.edu.fjfuyu.net'
} 
else {
    a= 'https://t-api.xueerqin.net'  // 测试
    // a= 'http://192.168.66.218:9561'
    b = 'https://tapp.xueerqin.net' // 测试
    c = 'https://test.oauth.fjfuyu.net' // 测试 
    srv = 'https://tsrv.xueerqin.net'
    ws = 'wss://t-websocket.xueerqin.net' 
    // ws = 'ws://192.168.66.44:12345' 
    busi = 'https://t-busi.xueerqin.net' 
    eshop = 'https://test.eshop.fjfuyu.net'
    edu = 'https://test.edu.fjfuyu.net'
   
}
// let wel = 'http://192.168.66.218:9526'
console.log(process.env.NODE_ENV)
console.log(a, b)
export const appUrl = b
export const apiUrl = a
export const authUrl = c
export const srvUrl = srv
export const wsUrl = ws
export const busiUrl = busi
export const welUrl = a
export const eshopUrl = eshop
export const eduUrl = edu
export const kitchenUrl = apiUrl + '/kitchen-center'
export const schoolUrl = appUrl
export const schoolAccount=apiUrl+"/one-card-solution"


export const baseUrl = srv + '/apiV2-stucard'
export const baseUrl2 = srv + '/public-api'
export const baseUrl3 = srv + '/api-classroomorder'
export const baseUrl4 = srv + '/api-notice'
export const baseUrlSet = srv + '/apiV2-stucard'
export const baseUrlCheking = srv + '/api-schoolmanage'
export const clockIn = srv + '/api-attendance'
export const circle = srv + '/api-classboard-show'
export const giveALike = srv + '/api-thumbup'
export const sure = srv + '/api-attendance'
export const commentUrl = srv + '/api-comment'
export const studentNameUrl = srv + '/api-attendance'
export const homeWorkUrl = srv + '/api-homework'
export const publicUrl = srv + '/public-api'
export const noticeUrl = srv + '/api-classnotice'
export const partyBuildUrl = srv + '/api-partybuild'
export const examUrl = srv + '/api-schoolmanage'
export const fytestUrl = srv + '/t-api-fytest'
export const fileapiUrl = 'https://fileapi.xueerqin.net'

export const payrollUrl = srv + '/api-oa-salary'
export const emailUrl = srv + '/api-oa-email'
export const oaUrl = srv + '/api-oa-flow'
export const oaNoticeUrl = srv + '/api-classnotice'
export const formUrl = srv + '/api-oa-form'
export const organizationUrl = srv + '/api-oa-dept'

export const mUrl = location.protocol + '//' + location.host
export const mappv2Url = mUrl
export const loginUrl = mUrl + '/study/static/signUp.html'
export const menuUrl = mUrl + '/study/index.html#/menu/index'

export const clientId = "fuyu_school_mobile"
export const clientSecret = "fuyu_school_mobile_secret"


